﻿<BaseUI:UserControlBase
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:BaseUI="clr-namespace:Silverlight.Weblog.Client.Default.Widgets.BaseUI"
	mc:Ignorable="d"
	xmlns:SampleData="clr-namespace:Expression.Blend.SampleData.SecondaryHeadlineWidgetViewModelSampleData"
	x:Class="Silverlight.Weblog.Client.Default.Widgets.SecondaryHeadlineWidget"
	>

	<BaseUI:UserControlBase.Resources>
		<SampleData:SecondaryHeadlineWidgetViewModelSampleData x:Key="SecondaryHeadlineWidgetViewModelSampleData" d:IsDataSource="True"/>
	</BaseUI:UserControlBase.Resources>

	<Grid x:Name="LayoutRoot" d:DataContext="{Binding Source={StaticResource SecondaryHeadlineWidgetViewModelSampleData}}" Height="0">
		<VisualStateManager.VisualStateGroups>
			<VisualStateGroup x:Name="TitleStates">
				<VisualStateGroup.Transitions>
					<VisualTransition GeneratedDuration="00:00:00"/>
					<VisualTransition From="Expanded" GeneratedDuration="00:00:00.5000000" To="Collapsed">
						<VisualTransition.GeneratedEasingFunction>
							<QuadraticEase EasingMode="EaseInOut"/>
						</VisualTransition.GeneratedEasingFunction>
					</VisualTransition>
					<VisualTransition From="Collapsed" GeneratedDuration="00:00:00.5000000" To="Expanded">
						<VisualTransition.GeneratedEasingFunction>
							<QuadraticEase EasingMode="EaseInOut"/>
						</VisualTransition.GeneratedEasingFunction>
					</VisualTransition>
				</VisualStateGroup.Transitions>
				<VisualState x:Name="Expanded">
					<Storyboard>
						<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(FrameworkElement.Height)">
							<EasingDoubleKeyFrame KeyTime="00:00:00" Value="75"/>
						</DoubleAnimationUsingKeyFrames>
					</Storyboard>
				</VisualState>
				<VisualState x:Name="Collapsed"/>
			</VisualStateGroup>
		</VisualStateManager.VisualStateGroups>
		<TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" Text="{Binding Title}" FontFamily="Trebuchet MS" FontSize="29.333" TextDecorations="Underline" Margin="40,10,0,30" Height="34.0595092773438"/>
	</Grid>
</BaseUI:UserControlBase>